<div class="meta-section meta-update">
    <div class="meta-section-header">
        <h4 class="meta-section-header-title">账号</h4>
        <div class="meta-section-header-buttons">
            <button class="btn btn-success" ng-click="openModel('sm','views/permission/modal/userModel.html', 'UserModelCtrl', {type:'user'}, true)">新建帐号</button>
        </div>
    </div>
    <div class="meta-section-container">
      <table class="table table-condensed table-striped table-bordered meta-table">
        <thead>
          <tr>
            <th class="meta-word-6-td">真实姓名</th>
            <th class="meta-number-12-td">登陆手机</th>
            <th>登陆邮箱</th>
            <th class="meta-word-4-td">权限</th>
            <th>创建时间</th>
            <th>最近登录</th>
            <th class="meta-icon-2-td">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="element in listCtrl.data track by $index">
              <td>{{element.name}}</td>
              <td>{{element.mobile}}</td>
              <td>{{element.email}}</td>
              <td>运维帐号</td>
              <td>{{element.createdAt | date:"yyyy-MM-dd HH:mm a"}}</td>
              <td>{{element.stat.lastLoginAt==null?'暂无数据': (element.stat.lastLoginAt | date:"yyyy-MM-dd h:mm a")}}
              </td>
              <td>
                  <i class="fa fa-edit fa-2x fa-blue"
                     ng-click="openModel('sm','views/permission/modal/userModel.html', 'UserModelCtrl', {id:element.id}, false)"></i>
                  <i class="fa fa-remove fa-2x fa-blue" ng-click="degrade(element.id)"
                     ng-if="element.email !== 'admin@metalab.cn'"></i>
              </td>
          </tr>
        </tbody>
      </table>
    </div>
</div>
